﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Guline.Web.LiveModels.DataContext;
using Guline.Web.LiveModels.Models;
namespace Guline.Web.Livechat.Controllers
{
    public class ViewHelperController : Controller
    {
        //
        // GET: /ViewHelper/
        private DataContext db = new DataContext();
      
        public ActionResult GeneralMenus()
        {
            return PartialView();
        }
        [Authorize]
        public ActionResult UserPanel()
        {
            return PartialView();
        }

        public ActionResult danhsachnhanvien(int idroom)
        {
            var kq = (from n in db.Room_members where n.room_ID == idroom select n).ToList<Room_member>();
            ViewBag.dsnv = kq;
            return PartialView();
        }

    }
}
